package com.dxy.dxyuser.repository;

import com.dxy.dxyuser.DO.UserAddress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserAddressRepository extends JpaRepository<UserAddress, Integer> {


    /**
     * 通过userId查询用户地址
     *
     * @param userId
     * @return
     */
    List<UserAddress> findByUserId(String userId);


}
